package cn.breeze.basic.constant;

/**
* @Title:
* @Description: 公共常量类
* @Author: Mr.D
* @Version: 1.0
* @Date:  2022/7/5 23:10
* @Parameters:
* @Return
*/
public class BaseConstants {

    /**
    * @Title:
    * @Description: 发送短信常量类
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/6 10:57
    * @Parameters:
    * @Return
    */
    public class SmsConstant{
        // 发送短信UID
        public static final String UID = "breezed";
        // 发送短信KEY
        public static final String KEY = "8B09FCF2E852368E0D2A873845AD1AAD";
    }

    /**
    * @Title:
    * @Description: 验证code常量类
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/5 23:10
    * @Parameters:
    * @Return
    */
    public class VerifyCodeConstant{
        // 用户注测手机验证码的业务键
        public static final String BUSINESS_REGISTER_PREFIX = "register:";
        // 用户登录手机验证码的业务键
        public static final String BUSINESS_LOGIN_PREFIX = "login:";
        // 用户登录手机验证码的业务键
        public static final String BUSINESS_BINDER_PREFIX = "binder:";
    }

    /**
    * @Title:
    * @Description: 微信登录常量类
    * @Author: Mr.D
    * @Version: 1.0
    * @Date:  2022/7/9 21:30
    * @Parameters:
    * @Return
    */
    public class WechatConstant{
        // 微信开放平台APPID
        public static final String APPID = "wxd853562a0548a7d0";
        // 微信开放平台秘钥
        public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        //获取access_token的url
        public static final String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
        // 获取微信用户信息的url
        public static final String WXUSER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
    }
}
